/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package eSchool.Utils;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author luis.zeferino
 */
public class CSVFilter extends FileFilter{
    
     public boolean accept(File file) {
        return file.getAbsolutePath().toLowerCase().endsWith(".csv") || file.isDirectory();
    }   
    
    public String getDescription(){
        return "CVS files (*.csv)";
    }

}
